/**
 * 座位信息表 api 封装
 *
 * @Author:    dragon
 * @Date:      2023-12-11 13:29:10
 * @Copyright  dragon
 */
import {postRequest, getRequest} from '/src/lib/axios';

export const rolandSeaApi = {

    /**
     * 分页查询  @author  dragon
     */
    queryPage: (param) => {
        return postRequest('/rolandSea/queryPage', param);
    },

    /**
     * 增加  @author  dragon
     */
    add: (param) => {
        return postRequest('/rolandSea/add', param);
    },

    /**
     * 修改  @author  dragon
     */
    update: (param) => {
        return postRequest('/rolandSea/update', param);
    },

    /**
     * 启用禁用区域座位  @author  dragon
     */
    updateAreaStatus: (param) => {
        return postRequest('/rolandSea/updateAreaStatus', param);
    },

    /**
     * 启用禁用指定座位  @author  dragon
     */
    updateStatus: (param) => {
        return postRequest('/rolandSea/updateStatus', param);
    },


    /**
     * 删除  @author  dragon
     */
    delete: (id) => {
        return getRequest(`/rolandSea/delete/${id}`);
    },

    /**
     * 批量删除  @author  dragon
     */
    batchDelete: (idList) => {
        return postRequest('/rolandSea/batchDelete', idList);
    },

    /**
     * 座位下拉
     */
    seatSelector: () => {
        return getRequest(`/rolandSea/seats/selector`);
    },
};
